package com.example.servicefeign.service;

import com.alibaba.fastjson.JSONObject;
import com.example.servicefeign.service.fallback.SchedualServiceLoginFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-login", fallback = SchedualServiceLoginFallBack.class)


public interface ServiceLogin {
    @RequestMapping(value = "/user/login", method = RequestMethod.GET)
    JSONObject sayLoginFromClientOne(@RequestParam(value = "name") String name, @RequestParam(value = "pwd") String pwd);
}
